package com.neuedu.charge.cost.fallback;

import com.neuedu.charge.base.entity.User;
import com.neuedu.charge.cost.fegin.UserFeign;
import org.springframework.stereotype.Component;

//@Component
//public class UserFeignFallback implements UserFeign {
//
//    @Override
//    public User getById(Long id, String username) {
//        System.out.println("熔断，默认回调函数");
//        User user = new User();
//        user.setUsername("飞了");
//        return user;
//    }
//
//    @Override
//    public String get(long id) {
//        System.out.println("熔断，默认回调函数");
//        return "{\"username\":\"admin\",\"age\":\"-1\"}";
//    }
//}
